package com.course.util;

/**
 * Created by Justin on 2017/5/30.
 */
public class TimeUtils {

    public static int getHH(int time) {
        return time / 100;
    }

    public static int getMM(int time) {
        return time - getHH(time) * 100;
    }

    public static int toTime(int hh, int mm) {
        return hh * 100 + mm;
    }
}
